//
//  UserRequest.m
//  ZT_iOS
//
//  Created by Brigitte on 2017/2/22.
//  Copyright © 2017年 Brigitte. All rights reserved.
//

#import "UserRequest.h"

#if DEBUG || INHOUSE

static NSString *const kUserServiceUrl1 = @"http://119.254.97.96:8085/mas/service/UserService/";
#else
static NSString *const kUserServiceUrl1 = @"http://119.254.97.96:8085/mas/service/UserService/";
#endif

@interface UserRequest()

@property (nonatomic,strong)NSString *url;
@property (nonatomic, strong)NSDictionary *parameters;

@end

@implementation UserRequest

- (instancetype)initWithUserServiceUrl:(NSString *)url params:(NSDictionary *)params
{
    if (self = [super init]) {
        _url = [NSString stringWithFormat:@"%@%@",kUserServiceUrl1,url];
        self.parameters = [NSDictionary dictionaryWithDictionary:params];
    }
    
    return self;
}


- (NSString *)url {
    return [BaseRequest urlWithApi:_url query:nil];
}


- (NSDictionary *)params {
    return self.parameters;
}


- (ZTHttpMethod)method {
    return ZTHttpMethodPost;
}

@end
